package com.aaa.lx1031;

/**
 * @author 荆豪峰
 * @version 1.0
 */
public class lx02 {
    public static void main(String[] args) {
        BankCard bankCard=new BankCard(0);

        Boy boy=new Boy(bankCard);
        Girl girl=new Girl(bankCard);

        Thread t1=new Thread(boy,"男孩");
        Thread t2=new Thread(girl,"女孩");

        t1.start();
        t2.start();


    }
}
